package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class OaBannerAddDTO {

    @NotBlank(message = "名称不能为空")
    @Length(max = 50, message = "名称字符数不能超过50")
    private String name;

    @NotBlank(message = "图片地址不能为空")
    @Length(max = 255, message = "图片地址字符数不能超过255")
    private String imgUrl;

    @Length(max = 255, message = "跳转链接的字符数不能超过255")
    private String href;

    @NotNull(message = "轮播图类型不能为空")
    // 1 大学习  2 文章  3 其它
    private Integer type;

    private Integer itemsId;

    private Integer sort;

    private Integer status;
}
